import layoutRoute from "@/router/layout-route.ts";
import {defineRoute} from "../../ark/router/app-router.ts";
import type {AppRouteMeta} from "@/router/route/app-route-meta.ts";

const homeRoute = {
  home: defineRoute<AppRouteMeta>({
    path: "/home",
    component: () => import("@/views/home/Home.vue"),
    meta: {
      title: "首页",
      allow: false
    },
    // 封装后的route将递归解析home为layout的children
    layout: layoutRoute.layout
  }),
}

export default homeRoute;